<!DOCTYPE html>
<html>

<head>

  
    {include file="Public/header"}
    <link href="__STATIC__/layout/css/gyq.css" rel="stylesheet">
    <link rel="stylesheet" href="__STATIC__/layout/css/demo.css" type="text/css">
    <style>
        .checkbox-inline input[type=checkbox],.radio-inline input[type=radio] {
    margin-top: 4px;
}
        .note-editable{height: 150px}
      .cb_box{display: none;}
      .activeA{color:red;}
      .cbActive{display: block;}
      .tdMax{min-width: 60px;max-width: 120px;}
      .textEff{border:0;background-color: #efffff;width: 200px}
      .textSomeTd{min-width: 160px;width: 160px;}
    </style>
</head>

<body style="color:#333;padding:3px;" onload="resize();" onresize="resize();">
    <!-- 标题 -->
     <div class="constractP">
    <div class="page-heade">
      <h1 class="title_color padding-10">经销商合同管理--合同申请</h1>
    </div>
    <!-- 标题 -->
    <div class="row-margin-top">
    <form action="" class="form-inline">
        <table class="table-bordered table t_table">
        <tr class="info">
        <th colspan="4" class="font-bold">经销商基本信息</th>
        </tr>
           <tr>
            <td  class="text-right textSomeTd"><label for="" class="form-label" >经销商:</label></td>
            <td colspan="3">
            <a href="javascript:;">{$jxs.title}</a>
            </td>
            </tr>
            <tr>
              <td  class="text-right textSomeTd"><label for="" class="form-label" >经销商编号:</label></td>
              <td>{$jxs.sn}</td>
               <td style="min-width: 160px;width: 160px" class="text-right"><label for="" class="form-label" >合作年限:</label></td>
              <td>{$jxs.cooptime}</td>
            </tr>
            <tr>
         <td class="text-right textSomeTd"><label for="" class="form-label" >渠道类型:</label></td>
          <td>{$jxs.qudao}</td>
        <td style="min-width: 160px;width: 160px" class="text-right"><label for="" class="form-label" >营业地址类型:</label></td>
       <td>
        {$ht.yydzlx}
       </td>
            </tr>
            <tr>
      <td class="text-right textSomeTd"><label for="" class="form-label" >营业地址:</label></td>
            <td colspan="3">
              {$ht.yydz_provice}-{$ht.yydz_city}-{$ht.yydz_county}-{$ht.yddz_xxdz}
            </td>
            </tr>
          </table>
           <table class="table-bordered table t_table">
             <tr class="info">
        <th colspan="2" class="font-bold">合同名称及编号：</th>
        </tr>
        <tr>
        <td class="text-right textSomeTd"><label for="" class="form-label" >合同名称:</label></td>
        <td class="font-bold">{$jxs.title}- {$ht.htmc_nf}年合同</td>
        </tr>
        <tr>
        <td class="text-right textSomeTd"><label for="" class="form-label" >合同编号:</label></td>
         <td>{$ht.htbh}</td>
        </tr>
           </table>
             <table class="table-bordered table t_table">
             <tr class="info">
        <th colspan="4" class="font-bold">授权信息：</th>
        </tr>
        <tr>
        <td class="text-right textSomeTd"><label for="" class="form-label" >合同有效期: </label></td>
        <td>
          {$ht.start}至{$ht.end}
        </td>
        <td style="min-width: 200px;width: 200px" class="text-right"><label for="" class="form-label" >合同销售目标(万元):</label></td>
         <td>{$ht.htxsmb}</td>
        </tr>
        <tr>
        <td class="text-right textSomeTd"><label for="" class="form-label" >预算费用目标<br>(万元):</label></td>
         <td>{$ht.ysfymb}</td>
         <td class="text-right"><label for="" class="form-label" >目标费用率:</label></td>
         <td>{$ht.mbfyl}%</td>
        </tr>
        <tr>
        <td class="text-right textSomeTd"><label for="" class="form-label" >授权品牌:</label></td>
        <td colspan="3">{$ht.sqppstr}</td>
        </tr>
        <tr>
        <td class="text-right textSomeTd"><label for="" class="form-label" >授权品类:</label></td>
        <td colspan="3">{$ht.sqplstr}</td>
        </tr>
        <tr>
        <td class="text-right textSomeTd"><label for="" class="form-label" >经销类型:</label></td>
        <td colspan="3">
        {if $ht.jxlx==1}
          区域型经销
        {else/}
          系统型经销
        {/if}
        </td>
        </tr>
        <tr>
        <td class="text-right textSomeTd"><label for="" class="form-label" >授权区域:</label></td>
        <td colspan="3" >
        <div class="form-group" id="sready">
           {if $ht.jxlx==1}
            {$ht.sqqystr}
          {else/}
            {$ht.sqxt}
          {/if}
        </div>
        </td>
        </tr>
           </table>
       <table class="table-bordered table " id="re_table">
          <tr>
            <th class="info font-bold">销售与预算目标分解(单位:万元)</th>
          </tr>
          <tr>
            <td class="showInfo" style="padding: 2px;">
                <table class="table table-bordered text-center" style="margin: 0">
                    <tr>
                      <td rowspan="2">时间</td>
                      <td >销售(销售)目标</td>
                      <td>预算(费用)目标</td>
                    </tr>
                    <tr>
                      <td style="padding:0;border:0;">
                        <table class='table-bordered' style='width:100%;height: 40px;line-height: 40px'><tr>
                          {volist name="$htmx.prolist" id="p"}
                            <td class='text-center' style='min-width:150px'>{$p}</td>
                          {/volist}
                          <td class='text-center' style='min-width:150px'>小计</td>
                        </tr></table>
                      </td>
                      <td  style="padding:0;border:0;">
                        <table class='table-bordered' style='width:100%;height: 40px;line-height: 40px'><tr>
                          {volist name="$htmx.prolist" id="p"}
                            <td class='text-center' style='min-width:150px'>{$p}</td>
                          {/volist}
                          <td class='text-center' style='min-width:150px'>小计</td>
                        </tr></table>
                      </td>
                    </tr>
                    <tr>
                      <td style="padding:0;border:0;">
                          <table class='table-bordered' style='width:100%;height: 40px;line-height: 40px'>
                              {volist name="$kaohe2" id="k"}
                                <tr><td class='text-center' style='min-width:100px'>{$k.cainian}年-{$k.yue}</td></tr>
                              {/volist}
                          </table>
                      </td>
                      <td style="padding:0;border:0;">
                          <table class='table-bordered' style='width:100%;height: 40px;line-height: 40px'>
                            {volist name="$kaohe2" id="k"}
                              <tr>
                                  {volist name="$htmx.sale_target[$k.k2id]" id="st"}
                                    <td style='min-width:150px'>{$st}</td>
                                  {/volist}
                              </tr>
                            {/volist}
                          </table>
                      </td>
                      <td style="padding:0;border:0;">
                          <table class='table-bordered' style='width:100%;height: 40px;line-height: 40px'>
                            {volist name="$kaohe2" id="k"}
                              <tr>
                                  {volist name="$htmx.yusuan_target[$k.k2id]" id="st"}
                                    <td style='min-width:150px'>{$st}</td>
                                  {/volist}
                              </tr>
                            {/volist}
                          </table>
                      </td>
                    </tr>
                    <tr>
                      <td>总计</td>
                      <td>0</td>
                      <td>0</td>
                    </tr>
                </table>
            </td>
          </tr>
        </table>
          <table class="table-bordered table t_table">
             <tr class="info">
        <th colspan="4" class="font-bold">合同提交人信息及提交时间：</th>
        </tr>
        <tr>
        <td class="text-right textSomeTd"><label for="" class="form-label" >合同提交人:</label></td>
        <td>{$user.em_name}</td>
         <td class="text-right textSomeTd"><label for="" class="form-label" >合同提交时间:</label></td>
        <td>{$ht.ctime}</td>
        </tr>
        <tr>
        <td class="text-right textSomeTd"><label for="" class="form-label" >提交人所在部门:</label></td>
        <td>{$user.de_name}</td>
         <td class="text-right textSomeTd"><label for="" class="form-label" >提交人联系方式:</label></td>
        <td>{$user.mobile}</td>
        </tr>
           </table>
      <table class="table-bordered table t_table">
      <tr class="info">
        <th colspan="4" class="font-bold">经销商财务信息：</th>
        </tr>
        <tr>
        <td class="text-right textSomeTd"><label for="" class="form-label" >法定代表人:</label></td>
        <td>{$ht.cw_legalrepre}</td>
         <td class="text-right textSomeTd"><label for="" class="form-label" >法人固定电话:</label></td>
        <td>{$ht.cw_lrphone}</td>
        </tr>
        <tr>
        <td class="text-right textSomeTd"><label for="" class="form-label" >法人手机:</label></td>
        <td>{$ht.cw_lrmobile}</td>
         <td class="text-right textSomeTd"><label for="" class="form-label" >法人电子邮箱:</label></td>
        <td>{$ht.cw_lremail}</td>
        </tr>
         <tr>
        <td class="text-right textSomeTd"><label for="" class="form-label" >纳税资格:</label></td>
        <td>
          {if $ht.cw_qualification==1}
          一般纳税人
          {else/}
          小额纳税人
          {/if}
        </td>
         <td class="text-right textSomeTd"><label for="" class="form-label" >税号:</label></td>
        <td>{$ht.cw_taxsn}</td>
        </tr>
        <tr>
           <td class="text-right textSomeTd"><label for="" class="form-label" >开户行:</label></td>
        <td>{$ht.cw_bank}</td>
         <td class="text-right textSomeTd"><label for="" class="form-label" >账号:</label></td>
        <td>{$ht.cw_banksn}</td>
        </tr>
         <tr>
           <td class="text-right textSomeTd"><label for="" class="form-label" >邮寄地址:</label></td>
        <td>{$ht.cw_mailaddr}</td>
         <td class="text-right textSomeTd"><label for="" class="form-label" >邮编:</label></td>
        <td>{$ht.cw_zipcode}</td>
        </tr>
         <tr>
           <td class="text-right textSomeTd"><label for="" class="form-label" >财务联系人:</label></td>
        <td>{$ht.cw_contact}</td>
         <td class="text-right textSomeTd"><label for="" class="form-label" >财务联系电话:</label></td>
        <td>{$ht.cw_phone}</td>
        </tr>
        <tr>
           <td class="text-right textSomeTd"><label for="" class="form-label" >财务电子邮箱:</label></td>
           <td colspan="3">
          {$ht.cw_email}
           </td>
          
        </tr>
           </table>
        <table class="table-bordered table t_table">
          <tr class="info">
            <th colspan="4" class="font-bold">业务联系资料：</th>
          </tr>
          <tr>
            <td class="text-right textSomeTd"><label for="" class="form-label" >业务联系人:</label></td>
            <td>{$ht.bs_contact}</td>
             <td class="text-right textSomeTd"><label for="" class="form-label" >业务联系固定电话:</label></td>
            <td>{$ht.bs_phone}</td>
          </tr>
           <tr>
            <td class="text-right textSomeTd"><label for="" class="form-label" >业务联系手机:</label></td>
            <td>{$ht.bs_mobile}</td>
             <td class="text-right textSomeTd"><label for="" class="form-label" >业务联系传真:</label></td>
            <td>{$ht.bs_fax}</td>
          </tr>
           <tr>
            <td class="text-right textSomeTd"><label for="" class="form-label" >收货单位:</label></td>
            <td>{$ht.bs_rcv_unit}</td>
             <td class="text-right textSomeTd"><label for="" class="form-label" >收货地址:</label></td>
            <td>{$ht.bs_rcv_addr}</td>
          </tr>
           <tr>
            <td class="text-right textSomeTd"><label for="" class="form-label" >收货人:</label></td>
            <td>{$ht.bs_rcv_one}</td>
             <td class="text-right textSomeTd"><label for="" class="form-label" >收货人电话:</label></td>
            <td>{$ht.bs_rcv_phone}</td>
          </tr>
      </table>
         <table class="table-bordered table t_table">
          <tr class="info">
            <th colspan="4" class="font-bold">合同其他信息：</th>
          </tr>
          <tr>
            <td class="text-right textSomeTd"><label for="" class="form-label" >合同签署时间:</label></td>
            <td>
              {$ht.qstime}
            </td>
             <td class="text-right textSomeTd"><label for="" class="form-label" >我方签署人:</label></td>
            <td><a href="javascript:;">{$ht.wofanguser}</a></td>
          </tr>
           <tr>
            <td class="text-right textSomeTd"><label for="" class="form-label" >对方签署人:</label></td>
            <td>{$ht.df_ren}</td>
             <td class="text-right textSomeTd"><label for="" class="form-label" >对方签署人职位:</label></td>
            <td>{$ht.df_job}</td>
          </tr>
           <tr>
            <td class="text-right textSomeTd"><label for="" class="form-label" >对方签署人电话:</label></td>
            <td>{$ht.df_phone}</td>
             <td class="text-right textSomeTd"><label for="" class="form-label" >对方签署人邮箱:</label></td>
            <td>{$ht.df_email}</td>
          </tr>
           <tr>
            <td class="text-right textSomeTd"><label for="" class="form-label" >对方签署人地址:</label></td>
            <td colspan="3">{$ht.df_addr}</td>
          </tr>
           <tr>
            <td class="text-right textSomeTd"><label for="" class="form-label" >是否为特殊合同:</label></td>
            <td colspan="3">
            {if $ht.ts==1}
            是
            {else/}
                否
                {/if}
            </td>
          </tr>
      </table>
      {if $ht.ts==1}
       <table class="table-bordered table" id="constructt">
          <tr class="info">
            <th class="font-bold">特殊条款备注：</th>
          </tr>
          <tr>
            <td>
               {$ht.tsmiaoshu}
            </td>
          </tr>
        </table>
        {/if}
       <table class="table-bordered table" id="constructg">
          <tr class="info">
            <th class="font-bold">合同概述：</th>
          </tr>
          <tr>
            <td>
               {$ht.miaoshu}
            </td>
          </tr>
        </table>
        <table class="table table-bordered text-left bud_hei">
            <tr class="info">
                <th class="text-left font-bold">审批意见</th>
            </tr>
            {volist name="logs" id="l"}
          <tr>
              <td>{$l.USERNAME} 审批动作：{$l.MEMO}；审批意见：{if $l.COMMENTS}{$l.COMMENTS}{else/}无{/if}(审批时间：{$l.ACTIONTIME})</td>
          </tr>
          
          {/volist}
      </table>
        <div class="row padding-10 text-center">
                                <button class="btn btn-primary" type="button" id="tijiao">进入下一步</button>
                               <!-- <button class="btn btn-info" type="button">打回修改</button>
                                <button class="btn btn-success" type="button">审批通过</button>-->
      </div>
      {if $ht.fujian}
        <h3>附件列表</h3>
        <div class="row">
          {volist name="fujian" id="f"}
            <a onclick="down({$f.id})">{$f.file_name}</a>&nbsp;&nbsp;
          {/volist}
        </div>
        <br/></br/>
      {/if}
      {if $ht.state==7}
       <div class="SuccessImg font-bold">
        已&nbsp;生&nbsp;效
      </div> 

      
      {/if}
</form>
    </div>
 </div>
  {include file="Public/footer"}

<!-- <script src="js/plugins/metisMenu/jquery.metisMenu.js"></script> -->
<script src="__STATIC__/layout/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
<!--统计代码，可删除-->
<script src="__STATIC__/layout/js/plugins/layer/laydate/laydate.js"></script>
  <script>
  function resize() {
        var b_width = $(document).width();    //获取table宽度
        var width = $("#re_table").width();

        if (width > b_width) {
            $(document).width(width);     //设置浏览器宽度
            $("body").css("overflow-x", "hidden")
        } else {
            $("body").css("overflow-x", "auto")

        }
    }
      //提交工作流
    $('#tijiao').click(function () {
      location.href='{:url("Workflowdb/gzlsp",["workId"=>request()->param("workId"),"trackId"=>request()->param("trackId")])}'
      return false
               
    })
  </script>
</body>

</html>
